<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
    class Eyeworx_Inventory_Color_RBO_RBOColor extends RBO_Recordset {

        public function fields() {
            $fields = array();

            $code = new RBO_Field_Text('Color Code');
            $code->set_length(500)->set_required()->set_visible();
            $fields[] = $code;

            $name = new RBO_Field_Text('Color Name');
            $name->set_length(45)->set_visible()->set_required();
            $fields[] = $name;

            return $fields;
        }

        public function table_name() {
            return 'eyeworx_color';
        }

    }
?>